package com.meatball.game.asr

object ProtocolVersion {
    const val PROTOCOL_VERSION = 0b0001
}

object MessageType {
    const val FULL_CLIENT_REQUEST = 0b0001
    const val AUDIO_ONLY_CLIENT_REQUEST = 0b0010
    const val FULL_SERVER_RESPONSE = 0b1001
    const val SERVER_ACK = 0b1011
    const val ERROR_MESSAGE_FROM_SERVER = 0b1111
}

object MessageTypeFlag {
    const val NO_SEQUENCE_NUMBER = 0b0000
    const val POSITIVE_SEQUENCE_CLIENT_ASSGIN = 0b0001
    const val NEGATIVE_SEQUENCE_SERVER_ASSGIN = 0b0010
    const val NEGATIVE_SEQUENCE_CLIENT_ASSGIN = 0b0011
}

object MessageSerial {
    const val NO_SERIAL = 0b0000
    const val JSON = 0b0001
    const val CUSTOM_SERIAL = 0b1111
}

object MessageCompress {
    const val NO_COMPRESS = 0b0000
    const val GZIP = 0b0001
    const val CUSTOM_COMPRESS = 0b1111
}